import request from "@/utils/request";

export function getTenants(paramters) {
  let url = "/api/identity/users/tenants";
  return request({
    url: url,
    method: "get",
    params: paramters,
  });
}

export function generateLinkLoginToken(
  sourceLinkUserId,
  sourceLinkTenantId,
  targetLinkUserId,
  targetLinkTenantId
) {
  let url = "/api/identity/users/tenants/generate-token";
  return request({
    url: url,
    method: "post",
    data: {
      sourceLinkUserId: sourceLinkUserId,
      sourceLinkTenantId: sourceLinkTenantId,
      targetLinkUserId: targetLinkUserId,
      targetLinkTenantId: targetLinkTenantId,
    },
  });
}

